package source.display
{
	import flash.display.*;
	
	import source.xml.IXMLManager;

	public class NewsAndWeatherView extends Sprite
	{
		
		private var serviceViews:Array;
		
		public function NewsAndWeatherView()
		{
			
			serviceViews = new Array();
			
		}
		
		public function addService( service:IXMLManager ):void {
			
			var serviceView:ServiceView = new ServiceView( service );
			serviceView.x = serviceViews.length * 172;
			serviceView.y = 276 - serviceView.height;
			
			serviceViews.push( serviceView );
			addChild( serviceViews[ serviceViews.length - 1 ] );
			
		}
		
	}
}